class Solution(object):
    def mySqrt(self, x):
        """
        :type x: int
        :rtype: int
        """
        a = int(pow(int(x), 0.5))
        print(a)


def main():
    x = input('x = ')
    Solution().mySqrt(x)

if __name__ =='__main__':
    main()